﻿' <summary>
' BeeWit IDE Entorno de desarrollo Visual para php.
' BeeWitPHP IDE es el único entorno de desarrollo para PHP 
' de tipo WYSIWYG (What You See Is What You Get). 
' ¡Ahora si!, aproveche la potencia del lenguaje PHP 
' y desarrolle más rápidamente gracias a la programación 
' intuitiva de BeeWit.
' Copyright © 2010 Dewins Murillo Garcia 
' EMAIL: dewinsmg@gmail.com
' EMAIL: dewins@beewitsoft.com
' Este Programa es Software Libre: usted puede redistribuirlo 
' y/o modificarlo bajo los términos de la Licencia Publica General 
' GNU como es publicada por la Fundacion de Software Libre; 
' en la 3ra versión de la licencia.
' Este programa es distribuido con la esperanza de que sea útil, 
' pero SIN GARANTÍA ALGUNA; sin siquiera la garantía implícita 
' de VALOR COMERCIAL o FORMADO PARA UN PROPÓSITO EN PARTICULAR. 
' Vea la Licencia Publica General GNU para mas detalles.
' Usted debe haber recibido una copia de la Licencia Publica General 
' GNU junto con este programa. Si no, vaya a http://www.beewitsoft.com
' o en http://code.google.com/p/ajax-beewit-php-ide/
' </summary>
' <remarks></remarks>

Imports System
Imports Microsoft.Win32

Module General
    Public Enum enumProjectType
        LOCAL
        FTP
    End Enum
    'CONTROLS
    Public MainForm As frmBeeWit

    Public Control_Explorer As ctlExplorer
    Public Control_Controls As ctlControls
    Public Control_Console As ctlConsole
    Public Control_Properties As ctlProperties
    Public Control_Eventos As ctlEventos
    Public Control_OpenedProjects As CtlOpenedProjects
    Public Control_NewOpenProjects As ctlNewOpenProject
    Public Control_News As ctlNews
    Public Control_Main As kotorito.ctlMain
    Public Control_Menu As ctlMenu
    Public Control_Debug As ctlDebug      
    'CLASSES
    Public Object_Language As clsLanguage
    Public Object_Icons As clsImages
    Public Object_OpenedProjects As clsOpenedProjects
    Public Object_LocalFiles As clsLocalFiles
    Public Object_Expression As clsRegExpr
    Public Object_PhpFunctions As clsPhpFunctions
    Public Object_Tags As clsTags
    'VARS
    Public Project_Name As String
    Public Project_Path As String
    Public Project_Type As String
    Public Project_Interfaz As ifzFilesManager
    Public TempDir As String
    Public StyleDezingTable As String = "<style>table,td{	mso-style-parent:style0;	border:1.0pt dashed #cccccc;}</style>" '"<style>table,td{	mso-style-parent:style0;	border:2.0pt double #cccccc;}</style>"
    Public BeeWitFocused As Boolean = False
    Public HtmlDataCopied As String = ""
    Public DragingControl As Boolean = False
    Public Settings As clsSettings

    Public Function GetRegistryKey(ByVal Nama As String) As RegistryKey
        Dim regKey As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\FireEdit", True)
        If regKey Is Nothing Then
            regKey = Registry.CurrentUser.CreateSubKey("Software\FireEdit")
        End If
        regKey = regKey.OpenSubKey("PHP\Compiler")
        If regKey Is Nothing Then
            regKey = Registry.CurrentUser.CreateSubKey("Software\PHP\Compiler")
        End If
        Return regKey
    End Function
End Module
